﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Configuration;
using System;
using System.Data;
using System.Data.SqlClient;
using System.Web.UI;
using System.Web.UI.WebControls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;

public partial class admin_searh_sell_property : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //GridView1.Visible = true;
        
    }
    protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
    {
       // GridView1.Visible = true;
    }
    protected void DropDownList3_SelectedIndexChanged(object sender, EventArgs e)
    {
     //   GridView1.Visible = true;
    }
    protected void DropDownList4_SelectedIndexChanged(object sender, EventArgs e)
    {

       // GridView1.Visible = true;
    }
    protected void DropDownList5_SelectedIndexChanged(object sender, EventArgs e)
    {
      //  GridView1.Visible = true;
    }
    protected void DropDownList6_SelectedIndexChanged(object sender, EventArgs e)
    {
       // GridView1.Visible = true;

    }
    protected void DropDownList7_SelectedIndexChanged(object sender, EventArgs e)
    {
     //   GridView1.Visible = true;

    }
    protected void DropDownList8_SelectedIndexChanged(object sender, EventArgs e)
    {
      //  GridView1.Visible = true;

    }
    protected void DropDownList9_SelectedIndexChanged(object sender, EventArgs e)
    {
       // GridView1.Visible = true;
    }
    protected void DropDownList10_SelectedIndexChanged(object sender, EventArgs e)
    {
        //GridView1.Visible = true;
    }
    protected void LinkButton1_Click(object sender, EventArgs e)
    {
        Session.Abandon();
        Response.Redirect("../admin.aspx");
    }
    //protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
    //{

    //    GridView1.EditIndex = e.NewEditIndex;

       

    //}
    //protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
    //{
    //    SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["Connstr"].ConnectionString);

    //    conn.Open();

    //    int sn = Convert.ToInt16(((TextBox)GridView1.Rows[e.RowIndex].Cells[1].Controls[1]).Text);

    //    GridViewRow row = (GridViewRow)GridView1.Rows[e.RowIndex];

      
    //    //TextBox txtname=(TextBox)gr.cell[].control[];

    //    TextBox email = (TextBox)row.Cells[3].Controls[0];

    //    TextBox phone = (TextBox)row.Cells[4].Controls[0];

    //    TextBox house = (TextBox)row.Cells[5].Controls[0];

    //    //TextBox textadd = (TextBox)row.FindControl("txtadd");

    //    //TextBox textc = (TextBox)row.FindControl("txtc");

    //    GridView1.EditIndex = -1;

    //    conn.Open();

    //    //SqlCommand cmd = new SqlCommand("SELECT * FROM detail", conn);

    //    SqlCommand cmd = new SqlCommand("update properties set email_add='" + email.Text + "',phone_no='" + phone.Text + "',house_no='" + house.Text + "'where p_id='" +sn + "'", conn);

    //    cmd.ExecuteNonQuery();

    //    conn.Close();

        

    //    //GridView1.DataBind();

    //}

    //protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    //{

    //    GridView1.PageIndex = e.NewPageIndex;

        
    //}

    //protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
    //{

    //    GridView1.EditIndex = -1;

     

    //}
   
    protected void Button1_Click(object sender, System.EventArgs e)
    {
        //GridView1.Visible = true;
    }

    protected void Button2_Click(object sender, System.EventArgs e)
    {
        Response.Redirect("sell_property.aspx");
    }
}

    //protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    //{

    //}
